package entity;

/**
 * 留言表的实体类
 */
public class Message {
    private Integer id;         //留言id
    private Integer user_id;    //用户id
    private String msg_content; //用户留言内容
    private String create_time; //发布时间

    public Message() {
    }

    public Message(Integer id, Integer user_id, String msg_content, String create_time) {
        this.id = id;
        this.user_id = user_id;
        this.msg_content = msg_content;
        this.create_time = create_time;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public String getMsg_content() {
        return msg_content;
    }

    public void setMsg_content(String msg_content) {
        this.msg_content = msg_content;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    @Override
    public String toString() {
        return "Message{" +
                "id=" + id +
                ", user_id=" + user_id +
                ", msg_content='" + msg_content + '\'' +
                ", create_time='" + create_time + '\'' +
                '}';
    }
}
